package summer_vacation.lvchang.myyVacation;
import java.util.Scanner;
/**
 * Created by Administrator on 2015/9/6.
 */
public class Text2 {
    public static void main(String[] args)
    {
        Scanner input = new Scanner(System.in);
        System.out.println("请输入10个整数:");
        int max = Integer.MIN_VALUE;
        int min = Integer.MAX_VALUE;
        for (int i = 0; i < 10; i++)
        {
            int j = input.nextInt();
            if (max < j)
                max = j;
            if (min > j)
                min = j;
        }
        System.out.println("最大值为:" + max);
        System.out.println("最小值为:" + min);
    }
    }



